import Vue from 'vue'
import VueRouter from 'vue-router'
import CampusBinhai from '../views/CampusBinhai.vue'
import CampusYueqing from '../views/CampusYueqing.vue'
import CampusChashan from '../views/CampusChashan.vue'
import StudentSystem from '../views/StudentSystem.vue'
import Building5 from '../views/Building5.vue'
import Building6 from '../views/Building6.vue'
import Building7 from '../views/Building7.vue'

Vue.use(VueRouter)

const routes = [
  //滨海校区
  {
    path: '/CampusBinhai',
    name: 'CampusBinhai',
    component: CampusBinhai
  },

  //乐清校区
  {
    path: '/CampusYueqing',
    name: 'CampusYueqing',
    component: CampusYueqing
  },

  //茶山校区
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan
  },
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan,
    children: [
      {
        path: 'Building5',
        name: 'Building5',
        component: Building5
      },
      {
        path: 'Building6',
        name: 'Building6',
        component: Building6
      },
      {
        path: 'Building7',
        name: 'Building7',
        component: Building7
      }

    ]
  },

  //学生管理系统
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: StudentSystem
  },
]

const router = new VueRouter({
  routes
})

export default router
